package com.mes.cloud.dto;

import com.mes.cloud.annotation.ExcelAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
* 角色
* @author wxm
* @Time 2019-4-16
*/
@ApiModel(value = "RoleDTO", description = "角色")
@Data
public class RoleDTO extends BaseDto implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
    * 
    */
    @ApiModelProperty(value = "ID", dataType = "Long")
    @ExcelAttribute(name = "ID",column = "A")
    private Long id;
    /**
    * 角色名
    */
    @ApiModelProperty(value = "角色名", dataType = "String")
    @ExcelAttribute(name = "角色名",column = "B")
    @NotNull(message = "name不能为空！")
    private String name;

    /**
    * 角色级别
    */
    @ApiModelProperty(value = "角色级别", dataType = "Integer")
    @ExcelAttribute(name = "角色级别",column = "C")
    private Integer lv;

    /**
    * 
    */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @ExcelAttribute(name = "创建时间",column = "D")
    private Date crtdate;

    /**
    * 
    */
    @ApiModelProperty(value = "修改时间", dataType = "Date")
    @ExcelAttribute(name = "修改时间",column = "E")
    private Date upddate;
    /**
    * 描述
    */
    @ApiModelProperty(value = "描述", dataType = "String")
    @ExcelAttribute(name = "描述",column = "F")
    private String remark;
    /**
    * 
    */
    @ApiModelProperty(value = "是否删除0正常/1删除", dataType = "Integer")
    private Integer isDelete;
    /**
    * 
    */
    @ApiModelProperty(value = "0正常/1禁用", dataType = "Integer")
    @ExcelAttribute(name = "0正常/1禁用",column = "G")
    private Integer isEnable;

    /**
     *类型
     */
    @ApiModelProperty(value = "类型", dataType = "String")
    @ExcelAttribute(name = "类型",column = "H")
    private String type;

    @ApiModelProperty(value = "编码", dataType = "String")
    @ExcelAttribute(name = "编码",column = "I")
    private String code;

    public RoleDTO() {
    }
}
